// JavaScript Document



 function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}


function stateChanged()
{
  if (xmlHttp.readyState==4)
  {
  document.getElementById("xianshi").innerHTML=xmlHttp.responseText;
  }
}


function check()
{

  xmlHttp=GetXmlHttpObject();

  if (xmlHttp==null)
    {
    alert ("");
    return;
    }

  var name = document.getElementById("admin_name");



  var url="check.php";
  url=url+"?q="+ name.value;
  url=url+"&sid="+Math.random();

  xmlHttp.open("GET",url,true);
  xmlHttp.onreadystatechange=stateChanged;
  xmlHttp.send(null);
}
